import "./Loading.scss"
import PropTypes from 'prop-types';

const Loading001 = ({ text, color = {} }) => {
    Loading001.propTypes = {
        text: PropTypes.string.isRequired,
        color: PropTypes.string.isRequired,
    };
    return (
        <div className="LoadingBox" style={color}>
            <div className="wrapper">
                <div className="circle"></div>
                <div className="circle"></div>
                <div className="circle"></div>
                <div className="shadow"></div>
                <div className="shadow"></div>
                <div className="shadow"></div>
                <span> {text || 'Loading'} </span>
            </div>
        </div>
    )
}

export default Loading001